package net.metashare.grah.logic

/**
 * Grah is a notion produced by metashare.net
 * User: dsherema
 * Date: May 1, 2010
 * Time: 6:41:35 PM
 *
 */
class Condition {

  Closure closure = { true }
  String name = "True"



  def Condition(Closure closure = {true}, name = "True") {
    this.closure = closure;
    this.name = name;
  }

  def boolean test(Object o) {
    return closure.call(o)
  }
}
